<%@page import="helpers.UrlHelper"%>
<%@page import="java.util.TreeMap"%>
<%
TreeMap check = (TreeMap) request.getAttribute("check");
String name = (String) request.getAttribute("name");
String pr = (String) request.getAttribute("pr");

//Set content for seo
String title = UrlHelper.getDomainServer(request) + " - Check Page Rank";
String description = "A PageRank results from a mathematical algorithm based on the webgraph, created by all World Wide Web pages as nodes and hyperlinks as edges, taking into consideration authority hubs such as cnn.com or usa.gov ";
String keywords = UrlHelper.getDomainServer(request) + ", check pagerank,google page rank,site pagerank, domain pagerank, fake pagerank checker, pagerank testen,analyze google pagerank,increase pagerank";
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

	<script type="text/javascript" src="/js/check_page_rank.js"></script>
                <div id="leftSideContent">
                	<section class="block">
                    	<div class="blockContent" id="checkPageRank">
                            <h3 class="blockHeading"><span>Check Page Rank</span></h3>
                            <div class="clearafter">
                            	<div class="form-input">
                            		<p class="topIntro">
	                                	 A PageRank results from a mathematical algorithm based on the webgraph, created by all World Wide Web pages as nodes and hyperlinks as edges, taking into consideration authority hubs such as cnn.com or usa.gov
	                                </p>
	                            	<h3 class="title">Enter a domain name:</h3>
	                                <form class="searchDomain" action="" method="get">
	                                    <div class="gridLayout gridLayout2 clearafter">
	                                        <div class="gridCol">                                            
	                                            <label>
	                                                <input type="text" value="<%=name != null ? name : "" %>" size="25" name="domain">
	                                                <% if (check.get("name") != null) { %>
	                                                	<span class="error">(<%=check.get("name") %>)</span>
	                                                <% } %>
	                                            </label>                                            
	                                        </div>
	                                        <div class="gridCol lastCol">
	                                            <button type="submit" class="buttonStyle">Check PR</button>
	                                        </div>
	                                    </div>
	                                </form>
	                                
	                                <% if (pr != null && !pr.isEmpty()) { %>
	                                <h3 class="title"><%=name %></h3>    
	                                <div class="info content-left">
	                                	<%=name%> has page rank is <img src="/images/pr/<%=pr %>.gif">                            
	                                </div>
	                                <% } %>
	                                
	                            </div>
                            </div>
                        </div>
                        <div class="blockShadow"></div>
                    </section>
                    
                    <!-- ADV -->
                	<section class="block adv-detail">
                    	<div class="blockContent clearafter">
                    		<div class="clearafter">
                    			<div class="left">
	                    			<script type="text/javascript"><!--
									google_ad_client = "ca-pub-2883566427648799";
									/* epufloor_336x280 */
									google_ad_slot = "6977110282";
									google_ad_width = 336;
									google_ad_height = 280;
									//-->
									</script>
									<script type="text/javascript"
									src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
									</script>
	                    		</div>
	                    		<div class="right">
	                    			<script type="text/javascript"><!--
									google_ad_client = "ca-pub-2883566427648799";
									/* epufloor_336x280 */
									google_ad_slot = "6977110282";
									google_ad_width = 336;
									google_ad_height = 280;
									//-->
									</script>
									<script type="text/javascript"
									src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
									</script>
	                    		</div>
                    		</div>                    		
                    	</div>
                    	<div class="blockShadow"></div>
                    </section>
                	<!-- END ADV -->
                </div>
                
                <!-- right content -->
                <jsp:include page="/elements/right.jsp" />
                <!-- end right content -->
                
<jsp:include page="/layouts/footer.jsp" />